package com.wz.jiangsu.service.es;

import com.wz.jiangsu.bean.entity.wazuh.WazuhSecurityEventDataCommonDtoToES;
import com.wz.jiangsu.bean.vo.es.QueryESCondition;
import com.wz.jiangsu.bean.vo.es.WazuhSecurityEventDataCommonVo;
import com.wz.jiangsu.bean.vo.resp.PageResult;
import com.wz.jiangsu.bean.vo.resp.R;

import java.util.List;

/**
 * @program: wz
 * @author: wangzhou
 * @create: 2024-01-01 20:01
 * @description:
 **/
public interface ESWazuhService {
    R<WazuhSecurityEventDataCommonDtoToES> findById(String id);

    R<WazuhSecurityEventDataCommonDtoToES> saveOrUpdateById(WazuhSecurityEventDataCommonVo vo);

    R<Long> count();

    R<Boolean> deleteAll();

    R<PageResult<List<WazuhSecurityEventDataCommonDtoToES>>> findByTs(Long ts);


    R<PageResult<List<WazuhSecurityEventDataCommonDtoToES>>> getResultByQueryESCondition(QueryESCondition vo);
}
